package com.mspbots.core.typehandler;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.databind.JsonNode;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;
import org.apache.ibatis.type.MappedTypes;

/**
 * com.mspbots.core.mapper.typehandler.JsonNodeTypeHandler
 *
 * @author Jun Zhou
 * @date 18:19 2019/7/2
 **/
@MappedTypes({JsonNode.class})
@MappedJdbcTypes(JdbcType.VARCHAR)
public class JsonNodeTypeHandler extends JacksonTypeHandler {

    public JsonNodeTypeHandler() {
        this(JsonNode.class);
    }

    public JsonNodeTypeHandler(Class<?> type) {
        super(type);
    }
}
